package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.DashboardOrgService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/dashboardOrg/")
public class DashboardOrgController {

  @Autowired
  DashboardOrgService dashboardOrgService;
/**
   * D3执行分析大屏归属部门(公共)
   */
    @PostMapping("analysisDashboradDeptIdCom")
    public OkrResult<AnalysisDashboradDeptIdComRespDto> analysisDashboradDeptIdCom(@RequestBody @Validated AnalysisDashboradDeptIdComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.analysisDashboradDeptIdCom(reqDTO));
    }
/**
   * D3执行分析大屏归属部门ID(公共)
   */
    @PostMapping("implementAnalyzeDashboradDeptIdCom")
    public OkrResult<ImplementAnalyzeDashboradDeptIdComRespDto> implementAnalyzeDashboradDeptIdCom(@RequestBody @Validated ImplementAnalyzeDashboradDeptIdComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.implementAnalyzeDashboradDeptIdCom(reqDTO));
    }
}
